import { ApiProperty } from '@nestjs/swagger';
import { Permission } from '../../permission/entities/permission.entity';

export class CreateRoleDto {
  // @ApiProperty({ description: '用户id', example: '用户id' })
  // userId: string;
  @ApiProperty({ description: '角色名', example: '普通用户' })
  roleName: string;

  @ApiProperty({ description: '角色代码', example: 'Users' })
  roleCode: string;

  @ApiProperty({ description: '角色级别', example: 0 })
  roleLevel: number;

  @ApiProperty({ description: '权限', example: '普通用户' })
  permissions: Permission[];
}
